package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 老人信息对象 heart_elderly_info
 * 
 * @author ruoyi
 * @date 2021-07-30
 */
public class HeartElderlyInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long elderlyid;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 老人姓名 */
    @Excel(name = "老人姓名")
    private String elderlyname;

    /** 老人性别 */
    @Excel(name = "老人性别")
    private Integer gender;

    /** 老人电话 */
    @Excel(name = "老人电话")
    private String phone;

    /** 老人年龄 */
    @Excel(name = "老人年龄")
    private Long age;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date buildtime;

    /** 最近一次求助时间 默认为null */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最近一次求助时间 默认为null", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lasthelptime;

    /** 老人地址 */
    @Excel(name = "老人地址")
    private String address;

    /** 家属电话 */
    @Excel(name = "家属电话")
    private String familyphone;

    /** $column.columnComment */
    @Excel(name = "家属电话")
    private Long communityid;

    public void setElderlyid(Long elderlyid) 
    {
        this.elderlyid = elderlyid;
    }

    public Long getElderlyid() 
    {
        return elderlyid;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setElderlyname(String elderlyname) 
    {
        this.elderlyname = elderlyname;
    }

    public String getElderlyname() 
    {
        return elderlyname;
    }
    public void setGender(Integer gender) 
    {
        this.gender = gender;
    }

    public Integer getGender() 
    {
        return gender;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setBuildtime(Date buildtime) 
    {
        this.buildtime = buildtime;
    }

    public Date getBuildtime() 
    {
        return buildtime;
    }
    public void setLasthelptime(Date lasthelptime) 
    {
        this.lasthelptime = lasthelptime;
    }

    public Date getLasthelptime() 
    {
        return lasthelptime;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setFamilyphone(String familyphone) 
    {
        this.familyphone = familyphone;
    }

    public String getFamilyphone() 
    {
        return familyphone;
    }
    public void setCommunityid(Long communityid) 
    {
        this.communityid = communityid;
    }

    public Long getCommunityid() 
    {
        return communityid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("elderlyid", getElderlyid())
            .append("userId", getUserId())
            .append("elderlyname", getElderlyname())
            .append("gender", getGender())
            .append("phone", getPhone())
            .append("age", getAge())
            .append("buildtime", getBuildtime())
            .append("lasthelptime", getLasthelptime())
            .append("address", getAddress())
            .append("familyphone", getFamilyphone())
            .append("communityid", getCommunityid())
            .toString();
    }
}
